/**
 * Created by fuhao on 4/15/16.
 */
function autoCenter(container) {
    var L1 = container.width();
    var H1 = container.height();
    var Left = (document.documentElement.clientWidth - L1) / 2;
    var top = (document.documentElement.clientHeight - H1) / 2;
    container.get(0).style.left = Left + "px";
    container.get(0).style.top = top + "px"
}